-- GENERATED SPELL FOR [Vengeful Ancient] --


function spell0_4030(pUnit, Event) --@Curse of Thorns,n/a--
pUnit:FullCastSpellOnTarget(6909,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4030', 2000, 1)
end

function Sorts_4030(pUnit, Event)
local choix_sorts_4030 = math.random(0, 0)
if choix_sorts_4030 == 0 then
pUnit:RegisterEvent('spell0_4030', 1, 1)
end
end

function mob4030_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4030', math.random(1500, 3000), 1)
end

function mob4030_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4030_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4030_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4030, 1, 'mob4030_Action')
RegisterUnitEvent(4030, 2, 'mob4030_Leave')
RegisterUnitEvent(4030, 3, 'mob4030_Kill')
RegisterUnitEvent(4030, 4, 'mob4030_Die')
